package com.danco.planner.sortings.sortby;

import java.util.Comparator;

import com.danco.planner.sortings.compareby.ICompareByDate;

public class SortByDate implements Comparator<ICompareByDate> {

	@Override
	public int compare(ICompareByDate o1, ICompareByDate o2) {
		Long num1 = o1.getDateForCompare().getTime();
		Long num2 = o2.getDateForCompare().getTime();
		return num1.compareTo(num2);
	}

}
